import { defineConfig } from 'electron-vite'
import {
  useMainPlugins,
  useMainResolve,
  usePreloadPlugins,
  usePreloadResolve,
  useRenderPlugins,
  useRenderResolve
} from './vite'

export default defineConfig({
  main: {
    plugins: useMainPlugins(),
    resolve: useMainResolve()
  },
  preload: {
    plugins: usePreloadPlugins(),
    resolve: usePreloadResolve()
  },
  renderer: {
    resolve: useRenderResolve(),
    plugins: useRenderPlugins()
  }
})
